package com.ssb.controller;

import java.util.List;


import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ssb.po.GoodsExample;
import com.ssb.service.GoodsService;
import com.ssb.service.OrderService;

/**
 * 查询所以实物商品
 * @author 胡俊
 *	2016年10月1日 下午12:12:49
 */
@Controller
@RequestMapping("/shiwu")
public class EntityGoodsController {
	@Autowired GoodsService goodsService;
	
	@RequestMapping("/selectall")
	public String showShiwu(Model m){
		GoodsExample example=new GoodsExample();
		m.addAttribute("goods", goodsService.selectByExample(example));
		return "/wx/shiwu";
	}

}
